<%-- 
    Document   : CheckOut
    Created on : Mar 21, 2011, 10:19:15 PM
    Author     : MaramZahran
--%>


<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="style/table.css" />
        <title>Check Out</title>
    </head>
    <body>
        <div id="main_container">
        <jsp:include page="Banner.html" />
        <jsp:include page="menuTab.jsp" />
        <jsp:include page="/AllCategory" />
        <div class="center_content">

   	<div class="center_title_bar">
           Product List
       </div>
       
    	<div class="prod_box_big">
        	<div class="top_prod_box_big"></div>
            <div class="center_prod_box_big">
                <div>
                <font color="red" >
                    <c:out value="${msg}"></c:out></font>
                </div>
               <table>
           <thead>
            <tr>
                <th>Product Name </th><th>Unit Price</th><th>Quantity</th><th>Remove from Cart</th><th></th>
            </tr>
        </thead>
        <tbody>
            
        <c:forEach items="${allproductinCarts}" var="pro" >
            <tr><td><c:out value="${pro.productId}" /></td><td><c:out value="${pro.unitPrice}" /></td><td><c:out value="${pro.count}" /></td><td><a href="RemoveFromCart?ProductID=${pro.productId}">remove</a></td> </tr>
            </c:forEach>
            <c:forEach items="${Cart}" var ="pro">
                <tr><td><c:out value="${pro.productId}" /></td><td><c:out value="${pro.unitPrice}" /></td><td><c:out value="${pro.count}" /></td><td><a href="RemoveFromCart?ProductID=${pro.productId}">remove</a></td> </tr>
            </c:forEach>


        </tbody>
        </table>


            </div>
            <div class="bottom_prod_box_big"></div>
            <div class="cart_icon"><a href="CheckOut" title="header=[Checkout] body=[&nbsp;] fade=[on]"><img src="images/shoppingcart.png" alt="" title="" width="48" height="48" border="0" /></a></div>
        </div>

   </div>
                <jsp:include page="Cart.jsp" />
                 <jsp:include page="Footer.html" />
       
        </div>
                
    </body>


</html>

